<#assign classNameLower = ClassName ? uncap_first>
package ${pPackage}.service;

import ${pPackage}.pojo.${ClassName};
import ${pPackage}.common.entity.PageResult;
import ${pPackage}.common.exception.CommonException;
import java.util.List;

public interface I${ClassName}Service {

    /**
     * 保存
     */
    void add(${ClassName} ${classNameLower});

    /**
     * 更新
     */
    void update(${ClassName} ${classNameLower}) throws CommonException;

    /**
     * 删除
     */
    void deleteById(String id) throws CommonException;

    /**
     * 根据id查询
     */
    ${ClassName} findById(String id);

    /**
     * 分页查询
     */
    PageResult<${ClassName}> findPage(${ClassName} ${classNameLower}, Integer pageNum, Integer pageSize) throws CommonException;

}
